home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12773 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.lang.c++
  2. Path: bath.ac.uk!uwe-bristol!kiwi!jp-morri
  3. From: jp-morri@csm.uwe.ac.uk (J Morris)
  4. Subject: Re: Programming the timer in BC4.5 for Windows (8 KHz)
  5. Message-ID: <1996Mar21.152234.4907@pat.uwe.ac.uk>
  6. To: thehun@tip.nl (The Hun)
  7. Sender: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  8. Nntp-Posting-Host: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  9. Organization: University of the West of England.
  10. X-Newsreader: xrn 7.04-beta-2
  11. References:  <DoEurA.KH7@tip.nl>
  12. Date: Thu, 21 Mar 1996 15:22:34 GMT
  13.  
  14. In article <DoEurA.KH7@tip.nl>, thehun@tip.nl (The Hun) writes:
  15. > I'm trying to program a sampler in Windows. This sampler is supposed
  16. > to receive data from a self-designed piece of hardware. I'm sampling
  17. > the voice (from a phone), so the frequency must be about 8 kHz. How do
  18. > I get windows to generate an interrupt at the rate of 8 kHz. Help
  19. > would be greatly appriciated! Thanks in advance.
  20. >     Patrick
  21.  
  22. This may not be strictly true, but this is my experience.
  23. If you're trying to do 8khz interrupts under windows, forget it.
  24.  
  25. I try to run a DOS program that does this under windows, and windows dies
  26. a horrible death.  You cannot get >6khz out of the system before it crashes.
  27.  
  28. I don't see why it should be any different for native windows apps.
  29.  
  30. Why not program for DOS?
  31. It will work!  I have got 16Khz to work easily.  I could get much more if I
  32. tried.   Writing this kind of program under Windows will just place contraints
  33. on the program.
  34.  
  35. Or, you could maybe use a DMA buffer to do this.  However, it will require
  36. additional hardware on your device.
  37.  
  38.  
  39.  
  40. -- 
  41. *****************************************************************************
  42. *J.P Morris, IT-HE Software * jp-morri@csm.uwe.ac.uk * NOT a UWE spokeman   *
  43. *****************************************************************************
  44.  
  45.  
  46.  
  47.  
  48.